{ INFORMATICS.MCCME.RU
  Problem statement: http://informatics.mccme.ru/moodle/mod/statements/view3.php?chapterid=434
  Verdict: Accepted
}
var a1,a2,b1,b2,a,b,c:longint; d2,v,c2,c1,d1:extended;
function y(x:extended):extended;
begin
result:=-(a*x+c)/b;
end;
function vect(x1,x2,y1,y2:extended):extended;
begin
result:=x1*y2-x2*y1;
end;
begin
assign(input,'input.txt');
assign(output,'output.txt');
reset(input);
rewrite(output);
read(a1,a2,b1,b2,a,b,c);
if b<>0 then begin
c1:=0;
c2:=y(c1);
d1:=100;
d2:=y(d1);
end else begin
    c1:=-c/a;
    c2:=100;
    d1:=c1;
    d2:=c2+100;
end;
v:=vect((c1-a1),(c2-a2),(d1-c1),(d2-c2))*vect((c1-b1),(c2-b2),(d1-c1),(d2-c2));
if v>=0 then write('YES') else write('NO');
end.